﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Whe;
using WOS;
using WOS.Common;

namespace WOS.Upload
{
    public sealed class UploadEntrySpecification
    {
        #region Private Fields
        private readonly string name;
        private readonly List<UploadFile> files;
        private readonly List<UploadPoint> points;
        #endregion
        #region Constructors
        public UploadEntrySpecification(string name)
        {
            this.name = name;
            this.files = new List<UploadFile>();
            this.points = new List<UploadPoint>();
        }
        #endregion

        #region Public Members
        public string Name
        {
            get { return this.name; }
        }

        public UploadFile[] GetFiles()
        {
            return this.files.ToArray();
        }

        public UploadPoint[] GetPoints()
        {
            return this.points.ToArray();
        }

        public void AddFiles(IEnumerable<UploadFile> files)
        {
            this.files.AddRange(files);
        }

        public void AddPoints(IEnumerable<UploadPoint> points)
        {
            this.points.AddRange(points);
        }
        #endregion
    }
}
